<?php #//AJAX PHP PENNY AUCTION v.1.2

#//////////////////////////////////////////////////////////////////
#//  COPYRIGHT 2009 - 2010 Aaron Helmlinger ALL RIGHTS RESERVED  //
#//////////////////////////////////////////////////////////////////
?>



 

 <? 
       
  $tabid = 2; // Change This Number To Correspond To The Tab You Want Activated
  include "tab_menu.php"; // To Change The Tabs - Modify This File
  $subtabid = "my auctions"; // Change This Variable To Correspond To Tab Sub Menu You Want To Display
  include "tab_submenu.php"; //To Change The Sub Menu - Modify This File
  include "category_menu.php"; //To Change The Category Menu - Modify This File
  $page_title_text = $MY_AUCTION_EDIT_PROFILE; //Change This Text To The Text That You Want To Show In The Page Title Bar
  $page_title_note = ""; //Change This Text To Display A Note In The Page Title Bar Area
  include "page_title.php"; //To Change The Page Title Look - Modify This File
  ?>            
      
     <? print $tab_menu ?>  <!-- This displays the Tab Menu - Delete It, If You Do Not Want It Show On The Screen  -->
     <? print $tab_submenu ?>  <!-- This displays the Tab Sub Menu - Delete It, If You Do Not Want It Show On The Screen    -->
     <? print $category_menu ?>  <!--  This displays the Category  Menu - Delete It, If You Do Not Want It Show On The Screen  -->
     <? print $page_title_content_box_start; ?>  <!-- This displays the Title Bar And Content Border - Delete It, If You Do Not Want It Show On The Screen  -->
                                                 <!-- You will also need to delete the "$page_title_content_box_stop" below  -->
                                                 
                
         <? // <!----------------------- START CONTENT HERE -------------------------->  ?>
                                 
         <script language="JavaScript">


function showimage()
{


document.images.pictures.src="images/avatar/" +document.details.avatar1.options[document.details.avatar1.selectedIndex].value+ "";

    /*var pagesObj = document.getElementById("avatar1");
alert(pagesObj.options[pagesObj.selectedIndex].value); 

var x=document.getElementById("avatar1")
alert(x.options[x.selectedIndex].text)*/

}

</script>                                        
          <DIV class=EDITDATA3>                                       
                                                 
                <form name=details action="<?=basename($_SERVER[PHP_SELF])?>" method="POST">



<?

$OPTIONAL_TEXT = " (".$MSG_30_0090.")";
?>
    <table width="90%" border="0" cellpadding="4" align="center">
        <?
          if(TPL_errmsg){
        ?>
        <tr>
            <td valign="top" align="center" colspan=3 class=errfont><? print $TPL_errmsg; ?></td>
        </tr>
        <?
        }
        ?>
        <tr>
            <td  align="right" ><b><? print $MSG_002; ?> </b></td>
            <td  ><h3><? print $TPL_name ?></h3>
                <input class=EDITDATA2  type=HIDDEN name=TPL_name value=<?=$TPL_name?> />
            </td>
        </tr>
        <tr>
            <td width="30%" align="right"  valign="top" ><b><? print $MSG_003; ?> </b> </td>
            <td width="70%"  valign="top"> <b> <? print $TPL_nick; ?></b>
                <input class=EDITDATA2  type=HIDDEN name=TPL_nick value=<?=$TPL_nick?> />
                <b><? echo $TPL_num_feedback; ?></b>
                <? if(!$TPL_rate) $TPL_rate=0; ?>
                <img src="./images/estrella_<? echo $TPL_rate; ?>.gif" align="top" alt="<?=$TPL_rate?>" /></td>
        </tr>
        
           <tr>
                        <td width="40%"  align="right"><b> <? print $REGISTRATION_PAGE_CHOOSE_AVATAR; ?> </b> </td>
                        <td width="60%">
                        <span>  </span>
                                             
                                               <table border="0" cellspacing="0" cellpadding="0" width=240 >
<tr>
<td width="120">

<select name="avatar_img" id="avatar1" size="3" onChange="showimage()">


<option value="avatar-blank.jpg" selected>Anonymous</option>
<option value="avatar000.jpg">Avatar 1</option>
<option value="avatar001.jpg">Avatar 2</option>
<option value="avatar002.jpg">Avatar 3</option>
<option value="avatar003.jpg">Avatar 4</option>
<option value="avatar004.jpg">Avatar 5</option>
<option value="avatar005.jpg">Avatar 6</option>                                                             
<option value="avatar006.jpg">Avatar 7</option>
<option value="avatar007.jpg">Avatar 8</option>
<option value="avatar008.jpg">Avatar 9</option>
<option value="avatar009.jpg">Avatar 10</option>
<option value="avatar010.jpg">Avatar 11</option>
<option value="avatar011.jpg">Avatar 12</option>
<option value="avatar012.jpg">Avatar 13</option>
<option value="avatar013.jpg">Avatar 14</option>
<option value="avatar014.jpg">Avatar 15</option>
<option value="avatar015.jpg">Avatar 16</option>
<option value="avatar016.jpg">Avatar 17</option>
<option value="avatar017.jpg">Avatar 18</option>
<option value="avatar018.jpg">Avatar 19</option>
<option value="avatar019.jpg">Avatar 20</option>
<option value="avatar020.jpg">Avatar 21</option>
<option value="avatar021.jpg">Avatar 22</option>
<option value="avatar022.jpg">Avatar 23</option>
<option value="avatar023.jpg">Avatar 24</option>
<option value="avatar024.jpg">Avatar 25</option>
<option value="avatar025.jpg">Avatar 26</option>
<option value="avatar026.jpg">Avatar 27</option>
<option value="avatar027.jpg">Avatar 28</option>
<option value="avatar028.jpg">Avatar 29</option>
<option value="avatar029.jpg">Avatar 30</option>
<option value="avatar030.jpg">Avatar 31</option>
<option value="avatar031.jpg">Avatar 32</option>
<option value="avatar032.jpg">Avatar 33</option>
<option value="avatar033.jpg">Avatar 34</option>
<option value="avatar034.jpg">Avatar 35</option>
<option value="avatar035.jpg">Avatar 36</option>
<option value="avatar036.jpg">Avatar 37</option>
<option value="avatar037.jpg">Avatar 38</option>
<option value="avatar038.jpg">Avatar 39</option>
<option value="avatar039.jpg">Avatar 40</option>
<option value="avatar040.jpg">Avatar 41</option>
<option value="avatar041.jpg">Avatar 42</option>
<option value="avatar042.jpg">Avatar 43</option>
<option value="avatar043.jpg">Avatar 44</option>
<option value="avatar044.jpg">Avatar 45</option>
<option value="avatar045.jpg">Avatar 46</option>
<option value="avatar046.jpg">Avatar 47</option>
<option value="avatar047.jpg">Avatar 48</option>
<option value="avatar048.jpg">Avatar 49</option>
<option value="avatar049.jpg">Avatar 50</option>
<option value="avatar050.jpg">Avatar 51</option>
<option value="avatar051.jpg">Avatar 52</option>
<option value="avatar052.jpg">Avatar 53</option>
<option value="avatar053.jpg">Avatar 54</option>
<option value="avatar054.jpg">Avatar 55</option>
<option value="avatar055.jpg">Avatar 56</option>
<option value="avatar056.jpg">Avatar 57</option>
<option value="avatar057.jpg">Avatar 58</option>
<option value="avatar058.jpg">Avatar 59</option>
<option value="avatar059.jpg">Avatar 60</option>
<option value="avatar060.jpg">Avatar 61</option>
<option value="avatar061.jpg">Avatar 62</option>
<option value="avatar062.jpg">Avatar 63</option>
<option value="avatar063.jpg">Avatar 64</option>
<option value="avatar064.jpg">Avatar 65</option>
<option value="avatar065.jpg">Avatar 66</option>
<option value="avatar066.jpg">Avatar 67</option>
<option value="avatar067.jpg">Avatar 68</option>
<option value="avatar068.jpg">Avatar 69</option>
<option value="avatar069.jpg">Avatar 70</option>
<option value="avatar070.jpg">Avatar 71</option>
<option value="avatar071.jpg">Avatar 72</option>
<option value="avatar072.jpg">Avatar 73</option>
<option value="avatar073.jpg">Avatar 74</option>
<option value="avatar074.jpg">Avatar 75</option>
<option value="avatar075.jpg">Avatar 76</option>
<option value="avatar076.jpg">Avatar 77</option>
<option value="avatar077.jpg">Avatar 78</option>
<option value="avatar078.jpg">Avatar 79</option>
<option value="avatar079.jpg">Avatar 80</option>
<option value="avatar080.jpg">Avatar 81</option>
<option value="avatar081.jpg">Avatar 82</option>
<option value="avatar082.jpg">Avatar 83</option>
<option value="avatar083.jpg">Avatar 84</option>
<option value="avatar084.jpg">Avatar 85</option>
<option value="avatar085.jpg">Avatar 86</option>
<option value="avatar086.jpg">Avatar 87</option>
<option value="avatar087.jpg">Avatar 88</option>
<option value="avatar088.jpg">Avatar 89</option>
<option value="avatar089.jpg">Avatar 90</option>
<option value="avatar090.jpg">Avatar 91</option>
<option value="avatar091.jpg">Avatar 92</option>
<option value="avatar092.jpg">Avatar 93</option>
<option value="avatar093.jpg">Avatar 94</option>
<option value="avatar094.jpg">Avatar 95</option>
<option value="avatar095.jpg">Avatar 96</option>
<option value="avatar096.jpg">Avatar 97</option>
<option value="avatar097.jpg">Avatar 98</option>
<option value="avatar098.jpg">Avatar 99</option>
<option value="avatar099.jpg">Avatar 100</option>
<option value="avatar100.jpg">Avatar 101</option>
<option value="avatar101.jpg">Avatar 102</option>
<option value="avatar102.jpg">Avatar 103</option>
<option value="avatar103.jpg">Avatar 104</option>
<option value="avatar104.jpg">Avatar 105</option>
<option value="avatar105.jpg">Avatar 106</option>
<option value="avatar106.jpg">Avatar 107</option>
<option value="avatar107.jpg">Avatar 108</option>
<option value="avatar108.jpg">Avatar 109</option>
<option value="avatar109.jpg">Avatar 110</option>
<option value="avatar110.jpg">Avatar 111</option>
<option value="avatar111.jpg">Avatar 112</option>
<option value="avatar112.jpg">Avatar 113</option>
<option value="avatar113.jpg">Avatar 114</option>
<option value="avatar114.jpg">Avatar 115</option>
<option value="avatar115.jpg">Avatar 116</option>
<option value="avatar116.jpg">Avatar 117</option>
<option value="avatar117.jpg">Avatar 118</option>
<option value="avatar118.jpg">Avatar 119</option>
<option value="avatar119.jpg">Avatar 120</option>
<option value="avatar120.jpg">Avatar 121</option>
<option value="avatar121.jpg">Avatar 122</option>
<option value="avatar122.jpg">Avatar 123</option>
<option value="avatar123.jpg">Avatar 124</option>
<option value="avatar124.jpg">Avatar 125</option>
<option value="avatar125.jpg">Avatar 126</option>
<option value="avatar126.jpg">Avatar 127</option>
<option value="avatar127.jpg">Avatar 128</option>
<option value="avatar128.jpg">Avatar 129</option>
<option value="avatar129.jpg">Avatar 130</option>
<option value="avatar130.jpg">Avatar 131</option>
<option value="avatar131.jpg">Avatar 132</option>
<option value="avatar132.jpg">Avatar 133</option>
<option value="avatar133.jpg">Avatar 134</option>
<option value="avatar134.jpg">Avatar 135</option>
<option value="avatar135.jpg">Avatar 136</option>
<option value="avatar136.jpg">Avatar 137</option>
<option value="avatar137.jpg">Avatar 138</option>
<option value="avatar138.jpg">Avatar 139</option>
<option value="avatar139.jpg">Avatar 140</option>
<option value="avatar140.jpg">Avatar 141</option>
<option value="avatar141.jpg">Avatar 142</option>
<option value="avatar142.jpg">Avatar 143</option>
<option value="avatar143.jpg">Avatar 144</option>
<option value="avatar144.jpg">Avatar 145</option>
<option value="avatar145.jpg">Avatar 146</option>
<option value="avatar146.jpg">Avatar 147</option>
<option value="avatar147.jpg">Avatar 148</option>
<option value="avatar148.jpg">Avatar 149</option>
<option value="avatar149.jpg">Avatar 150</option>
<option value="avatar150.jpg">Avatar 151</option>
<option value="avatar151.jpg">Avatar 152</option>
<option value="avatar152.jpg">Avatar 153</option>
<option value="avatar153.jpg">Avatar 154</option>
<option value="avatar154.jpg">Avatar 155</option>
<option value="avatar155.jpg">Avatar 156</option>
<option value="avatar156.jpg">Avatar 157</option>
<option value="avatar157.jpg">Avatar 158</option>
<option value="avatar158.jpg">Avatar 159</option>
<option value="avatar159.jpg">Avatar 160</option>
<option value="avatar160.jpg">Avatar 161</option>
<option value="avatar161.jpg">Avatar 162</option>
<option value="avatar162.jpg">Avatar 163</option>
<option value="avatar163.jpg">Avatar 164</option>
<option value="avatar164.jpg">Avatar 165</option>
<option value="avatar165.jpg">Avatar 166</option>
<option value="avatar166.jpg">Avatar 167</option>
<option value="avatar167.jpg">Avatar 168</option>
<option value="avatar168.jpg">Avatar 169</option>
<option value="avatar169.jpg">Avatar 170</option>
<option value="avatar170.jpg">Avatar 171</option>
<option value="avatar171.jpg">Avatar 172</option>
<option value="avatar172.jpg">Avatar 173</option>
<option value="avatar173.jpg">Avatar 174</option>
<option value="avatar174.jpg">Avatar 175</option>
<option value="avatar175.jpg">Avatar 176</option>
<option value="avatar176.jpg">Avatar 177</option>
<option value="avatar177.jpg">Avatar 178</option>
<option value="avatar178.jpg">Avatar 179</option>
<option value="avatar179.jpg">Avatar 180</option>
<option value="avatar180.jpg">Avatar 181</option>
<option value="avatar181.jpg">Avatar 182</option>
<option value="avatar182.jpg">Avatar 183</option>
<option value="avatar183.jpg">Avatar 184</option>
<option value="avatar184.jpg">Avatar 185</option>
<option value="avatar185.jpg">Avatar 186</option>
<option value="avatar186.jpg">Avatar 187</option>
<option value="avatar187.jpg">Avatar 188</option>
<option value="avatar188.jpg">Avatar 189</option>
<option value="avatar189.jpg">Avatar 190</option>
<option value="avatar190.jpg">Avatar 191</option>
<option value="avatar191.jpg">Avatar 192</option>
<option value="avatar192.jpg">Avatar 193</option>
<option value="avatar193.jpg">Avatar 194</option>
<option value="avatar194.jpg">Avatar 195</option>
<option value="avatar195.jpg">Avatar 196</option>
<option value="avatar196.jpg">Avatar 197</option>
<option value="avatar197.jpg">Avatar 198</option>
<option value="avatar198.jpg">Avatar 199</option>
<option value="avatar199.jpg">Avatar 200</option>
<option value="avatar200.jpg">Avatar 201</option>
<option value=<? print $avatar_img; echo " selected"; ?>><? print $avatar_img; ?>
</select>

</td>
<td width="120"><img src="images/avatar/<? print $avatar_img; ?>" name="pictures" width="100" height="100"></td>
</tr>
</table>   
                            
                            
                            </td>
                    </tr>
        
        
        
        
        
        
        <tr>
            <th colspan="2" valign="top" align="center"> <FONT color=red><? print $MSG_617; ?> </FONT></td>
        </tr>
        <tr>
            <td valign="top" align="right"> <FONT color=red><? print $MSG_268 ?></FONT></td>
            <td align="left"><input class=EDITDATA2  type=password name=TPL_password size=20 maxlengtd=20 /> <FONT color=red><? print $MSG_050; ?></FONT> </td>
        </tr>
        <tr>
            <td valign="top" align="right" > <FONT color=red><? print $MSG_005 ?></FONT></td>
            <td align="left">
                <input class=EDITDATA2  type=password name=TPL_repeat_password size=20 maxlengtd=20 />
            </td>
        </tr>
        <tr>
            <td valign="top" align="right"><b> <? print $MSG_006; ?> </b> </td>
            <td >
                <input class=EDITDATA2  type=text   name=TPL_email size=50 maxlength=50 value="<? echo $TPL_email; ?>" />
            </td>
        </tr>
        <tr>
            <td  valign="top" align="right"> <b><?=$MSG_252;?></b> </td>
            <td >
                <input class=EDITDATA2  type=text   name=TPL_birthdate size=10 maxlength=10 value="<? echo $TPL_birthdate; ?>" />
                <?
                if($SETTINGS[datesformat] == "USA") {
                	print $MSG_382;
                } else {
                	print $MSG_383;
                }
				?>
            </td>
        </tr>
        <tr>
            <td  valign="top" align="right"><b> <? print $MSG_009; ?> </b> </td>
            <td >
                <input class=EDITDATA2  type=text   name=TPL_address size=40 maxlength=255 value="<? echo $TPL_address; ?>" />
            </td>
        </tr>
        <tr>
            <td  valign="top" align="right"><b> <? print $MSG_010; ?> </b> </td>
            <td >
                <input class=EDITDATA2  type=text   name=TPL_city size=25 maxlength=25 value="<? echo $TPL_city; ?>" />
            </td>
        </tr>
        <tr>
            <td  valign="top" align="right"><b> <? print $MSG_011; ?> </b> </td>
            <td >
                <input class=EDITDATA2  type=text   name=TPL_prov size=10 maxlength=10 value="<? echo $TPL_prov; ?>" />
            </td>
        </tr>
      
      
 <!--
        <tr>
            <td  valign="top" align="right"><b> <? print $MSG_014; ?> </b> </td>
            <td >



            </td>
        </tr>
    -->
    
    
    
        <tr>
            <td  valign="top" align="right"><b> <? print $MSG_012; ?> </b> </td>
            <td >
                <input class=EDITDATA2  type=text   name=TPL_zip size=8 value="<? echo $TPL_zip; ?>" />
            </td>
        </tr>
        <tr>
            <td  valign="top" align="right"><b> <? print $MSG_013; ?> </b> </td>
            <td >
                <input class=EDITDATA2  type=text   name=TPL_phone size=40 maxlength=40 value="<? echo $TPL_phone; ?>" />
            </td>
        </tr>
        <tr>
            <?
            if($SETTINGS[newsletter] == 1)        {
			?>
            <td  align="right" height="2">
                <p><b><i><? print $MSG_603; ?></i></b><br>
                </p>
            <td>
                <input type="radio" name="TPL_nletter" value="1" <? if($TPL_nletter == 1 ) print " CHECKED=true";?> />
                <? print $MSG_030; ?>
                <input  type="radio" name="TPL_nletter" value="2" <? if($TPL_nletter == 2 ) print " CHECKED=true";?> />
                <? print $MSG_029;?> &nbsp
                <b><?  print $MSG_609; ?></b>
            </td>
        </tr>
        	<?
            }
	 		?>
        <tr>
            <td colspan=2 align=center>
                <input   type="submit" name="Input" value="<?=$MSG_530?>" class=button />
                <input   type=reset name="Input" class=button />
            </td>
        </tr>
    </table>
    <input class=EDITDATA2  type="hidden" name="action" value="update" />
<input class=EDITDATA2  type="hidden" value="United States" name=TPL_country>

</form>

   </div>


    <?// <!----------------------- END CONTENT HERE ------------------------->  ?>
                                                 
     <? print $page_title_content_box_stop; ?>  
   